#ifndef CODESCANTHREAD_H
#define CODESCANTHREAD_H

#include <QThread>
#include <QMutexLocker>

class CodeScanThread : public QThread
{
    Q_OBJECT
public:
    explicit CodeScanThread(QObject *parent = NULL);
    ~CodeScanThread();

    void stop();

protected:
    void run();

private:
    bool isStop;
    QMutex m_lock;

signals:
    void codeGot(QString);

};

#endif // CODESCANTHREAD_H
